/* 
 * Created on 2007-5-12
 * Last modified on 2007-5-12
 * Powered by YeQiangWei.com
 */
package com.yeqiangwei.mail;

import com.yeqiangwei.util.TypeChange;

public class MailModel {
	
	private String to;
	
	private String taker;
	
	private String from;

	private String sender;
	
	private String smtpId;
	
	private String smtport;
	
	private String smtpServer;
	
	private String subject;   //邮件标题
	
	private String content; //邮件内容
	
	private boolean needAuth = false;
	
	private boolean needSSL = false;
	
	private String smtpPassword;
	
	private String cc;
	
	public boolean getNeedSSL() {
		return needSSL;
	}

	public void setNeedSSL(boolean needSSL) {
		this.needSSL = needSSL;
	}

	public String getCc() {
		return cc;
	}

	public void setCc(String cc) {
		this.cc = cc;
	}

	public String getSmtpPassword() {
		return smtpPassword;
	}

	public void setSmtpPassword(String smtpPassword) {
		this.smtpPassword = smtpPassword;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public String getFrom() {
		return from;
	}

	public void setFrom(String from) {
		this.from = from;
	}

	public boolean getNeedAuth() {
		return needAuth;
	}

	public void setNeedAuth(boolean needAuth) {
		this.needAuth = needAuth;
	}
	
	public void setNeedAuth(String needAuth){
		this.needAuth = TypeChange.stringToBoolean(needAuth);
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public String getSmtpId() {
		return smtpId;
	}

	public void setSmtpId(String smtpId) {
		this.smtpId = smtpId;
	}

	public String getSmtport() {
		return smtport;
	}

	public void setSmtport(String smtport) {
		this.smtport = smtport;
	}

	public String getSmtpServer() {
		return smtpServer;
	}

	public void setSmtpServer(String smtpServer) {
		this.smtpServer = smtpServer;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getTaker() {
		return taker;
	}

	public void setTaker(String taker) {
		this.taker = taker;
	}

	public String getTo() {
		return to;
	}

	public void setTo(String to) {
		this.to = to;
	}
}
